<layout name='Layout/layout_page' />
	<ol class="breadcrumb">
		<li><a href="<{:U('Member/index')}>"><{:L('_menu_member')}></a></li>
      	<li class="active"><{:L(_public_list)}></li>
    </ol>
	
	<form class="form-inline" method="post" action="<{:U('Member/index')}>">
  		<div class="form-group">
    		<label>email</label>
    		<input type="text" class="form-control input-sm" name="username" value="<{$username}>">
  		</div>
		<button type="submit" class="btn btn-default btn-sm">Search</button>
		<a href="<{:U('Member/index')}>" class="btn btn-default btn-sm">Reset</a>
	</form>

	<p></p>
	
	<form id="ajaxForm" method="post" action="<{:U('Member/del')}>" name="form1" class="form-horizontal form-validata">
	<TABLE class="table table-striped table-bordered table-hover">
	  <THEAD>
		<tr>
		  <TH><input class="checkall" name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/> <{:L("_public_select")}></TH>
		  <TH>ID</TH>		  
		  <TH>email</TH>
		  <TH>Type</TH>
		  <TH>Status</TH>
		  <TH>Regdate</TH>
		  <TH>Last Login</TH>
		  <TH>Action</TH>
		</tr>
	  </THEAD>
	  <TBODY>             
			<volist name="list" id="vo">
			<tr>
			  <td><input type="checkbox" name="selectedids[]" value="<{$vo.userid}>" id="<{$vo.userid}>"></td>
			  <td><{$vo.userid}></td>			  
			  <td><{$vo.username}></td>
              <td><eq name="vo.userType" value="1"><font color="blue">Mentes</font><else/>Mentor</eq></td>
              <td><eq name="vo.status" value="1">enable<else/><font color="red">disable</font></eq></td>
              <td><{$vo.regDate|date='Y-m-d H:i:s',###}></td>
              <td><{$vo.loginDate|date='Y-m-d H:i:s',###}></td>
			  <td>
			  	<a href="<{:U('Member/edit' , array('userid'=>$vo['userid']))}>" class="btn btn-default btn-sm"><i class="glyphicon glyphicon-edit"></i> edit</a>
			  </td>
			</tr>
			</volist>
	  </TBODY>
	</TABLE>

	<div class="row">
		<div class="col-md-6">
			<button class="btn btn-info btn-sm" onClick="if(!confirm('Cannot be recovered after deletion!'))return false;"><i class="glyphicon glyphicon-trash"></i> Delete selected message</button>
		</div>
		
		<div class="col-md-6">
			<div class="page">
				<nav>
  					<ul class="pagination"><{$page}></ul>
  				</nav>
  			</div>
		</div>
	</div>
	</form>

<input type="hidden" id="menu_action" value="user" />